import * as Y from 'yjs';
import { TiptapCollabProvider } from '@hocuspocus/provider';

export type Color = string;
export type Name = string;

export interface User {
  name: Name;
  color: Color;
}

export interface EditorProps {
  ydoc: Y.Doc;
  provider: TiptapCollabProvider;
  room: string;
}

export interface HistoryItem {
  id: number;
  content: string;
  created_at: string;
}